/*package com.sgcc.process.service.impl;
import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sgcc.process.entity.Njxq;
import com.sgcc.process.entity.TGdKhsq;
import com.sgcc.process.mapper.NjxqMapper;
import com.sgcc.process.mapper.TGdKhsqMapper;
import com.sgcc.process.service.INjxqService;

*//**
 *  实现类
 * 
 * @author soleung
 *
 *//*
@Service
@Transactional
public class NjxqServiceImpl implements INjxqService {

	@Autowired
	private NjxqMapper njxqMapper;
	
	@Autowired
	private TGdKhsqMapper tGdKhsqMapper;

	@Override
	public int selectMapPageByCondition() {
		int count = 0;
		List<TGdKhsq> resultList = new ArrayList<TGdKhsq>();
		List<TGdKhsq> tGdKhsqList = njxqMapper.selectTGdKhsqList();
		List<Njxq> njxqList = njxqMapper.selectNjxqList();
		for(TGdKhsq tGdkhsq : tGdKhsqList){
			String xcdz = tGdkhsq.getXcdz();
			if(xcdz!=null && !"".equals(xcdz)){
				for (Njxq njxq : njxqList){
					String gjc1 = njxq.getGjc1();
					String gjc2 = njxq.getGjc2();
					if(xcdz.contains(gjc1) || xcdz.contains(gjc2)){
						tGdkhsq.setXqmc(njxq.getLpmc());
						int res = njxqMapper.updateResult(njxq.getLpmc(), tGdkhsq.getObjId());
//						resultList.add(tGdkhsq);
						count = count + res;
//						count++;
						System.out.println("正在匹配第"+count+"条记录");
						break;
					}
				}
			}
//			if(count > 3){
//				break;
//			}
		}
//		if (resultList.size() > 0){
//			count = njxqMapper.updateResultList(resultList);
//		}
		return count;
	}

	@Override
	public String edit(Njxq njxq) {
		String flag = "false";
		int result = njxqMapper.update(njxq, null);
		if (result > 0) {
			flag = "true";
		}
		return flag;
	}

}
*/